package com.qd.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户绑定信息
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_base_user_info_bind")
public class BaseUserInfoBind extends Model<BaseUserInfoBind> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "uid", type = IdType.ASSIGN_ID)
    private String uid;
    /**
     * 用户手机号
     */
    @TableField("mobile")
    private String mobile;
    /**
     * 绑定时间
     */
    @TableField("bind_time")
    private LocalDateTime bindTime;

    public void freeData() {
        this.uid = null;
        this.mobile = null;
        this.bindTime = null;
    }

}
